package com.aspose.cells;

final class zax {
   public static void a(zn var0, com.aspose.cells.b.a.b.zq var1, zas var2) {
      if (var2.h() != 0) {
         com.aspose.cells.b.a.b.zc var3 = a(var2, var1);

         try {
            var0.b(var3, var1);
         } finally {
            if (var3 != null) {
               var3.f();
            }

         }
      }

   }

   public static com.aspose.cells.b.a.b.zc a(zas var0, com.aspose.cells.b.a.b.zq var1) {
      return a(var0, var1, false);
   }

   public static com.aspose.cells.b.a.b.zc a(zas var0, com.aspose.cells.b.a.b.zq var1, boolean var2) {
      Object var3 = null;
      if (var0.f()) {
         com.aspose.cells.b.a.b.a.ze var4 = new com.aspose.cells.b.a.b.a.ze();
         var4.b(var1);
         var3 = var0.c().a(var4, var2, 1.0F);
      } else if (var2) {
         var3 = new com.aspose.cells.b.a.b.zu(var0.b());
      } else {
         var3 = new com.aspose.cells.b.a.b.zu(var0.e());
      }

      return (com.aspose.cells.b.a.b.zc)var3;
   }

   public static com.aspose.cells.b.a.b.zc a(zas var0, com.aspose.cells.b.a.b.zq var1, float var2) {
      Object var3 = null;
      if (var0.f()) {
         com.aspose.cells.b.a.b.a.ze var4 = new com.aspose.cells.b.a.b.a.ze();
         var4.b(var1);
         var3 = var0.c().a(var4, false, var2);
      } else {
         Color var5 = Color.fromArgb((int)((float)(com.aspose.cells.a.c.zh.b(var0.e()) & 255) * var2), (int)((float)(com.aspose.cells.a.c.zh.c(var0.e()) & 255) * var2), (int)((float)(com.aspose.cells.a.c.zh.d(var0.e()) & 255) * var2));
         if (com.aspose.cells.a.c.zh.a(var0.e())) {
            var5 = Color.getEmpty();
         }

         var3 = new com.aspose.cells.b.a.b.zu(var5);
      }

      return (com.aspose.cells.b.a.b.zc)var3;
   }
}
